added mainMenu (control, proxy) and some function