added toggle feature to application menu fsm.