add main menu and changed accelerator listening
implement new recognition