simple FSM for an application menu with opened and closed states.