Created "popupService" to use $ionicPopup