change Modal reference to $ionicModal