added menu caption output
added QUIT event processing in MainMenu state