cec: added a callback to handle menu state changes. if the callback method returns...