add ionicPlatform.ready to controller