removed alerts from onDeviceReady that where isnerted for testing purposes