connect main menu to server.