fixed back and menu button behavior