added solution for devices without menu button