changed the menu behaviour