move menubutton listener to onDeviceReady