                                         $changePasswordModal.modal 'show'
 
         dismiss: ->
-            $main = $ '#main'
-            $buttonChangePassword = $main.find 'button[data-action="change-password"]'
-            if $buttonChangePassword.length
-                $buttonChangePassword.off 'click'
-                $changePasswordModal = $ '#change-password-modal'
-                $changePasswordForm = $changePasswordModal.find 'form'
-                $changePasswordForm.off 'submit'
-                $changePasswordSubmitButton = $changePasswordModal.find 'button[data-action="complete-change-password"]'
-                $changePasswordSubmitButton.off 'click'
-
-            $buttonEditProfile = $main.find 'button[data-action="edit-profile"]'
-            if $buttonEditProfile.length
-                $buttonEditProfile.off 'click'
-                $editProfileModal = $ '#edit-profile-modal'
-                $editProfileForm = $editProfileModal.find 'form'
-                $editProfileForm.off 'submit'
-                $editProfileSubmitButton = $editProfileModal.find 'button[data-action="complete-edit-profile"]'
-                $editProfileSubmitButton.off 'click'
-
-
-            $buttonChangeEmail = $main.find 'button[data-action="change-email"]'
-            if $buttonChangeEmail.length
-                $buttonChangeEmail.off 'click'
-                $changeEmailModal = $ '#change-email-modal'
-                $changeEmailForm = $changeEmailModal.find 'form'
-                $changeEmailForm.off 'submit'
-                $changeEmailSubmitButton = $changeEmailModal.find 'button[data-action="complete-change-email"]'
-                $changeEmailSubmitButton.off 'click'
-
-            $buttonResendConfirmation = $main.find 'button[data-action="resend-confirmation"]'
-            if $buttonResendConfirmation.length
-                $buttonResendConfirmation.off 'click'
-                $resendConfirmationModal = $ '#resend-confirmation-modal'
-                $resendConfirmationForm = $resendConfirmationModal.find 'form'
-                $resendConfirmationForm.off 'submit'
-                $resendConfirmationSubmitButton = $resendConfirmationModal.find 'button[data-action="complete-resend-confirmation"]'
-                $resendConfirmationSubmitButton.off 'click'
-
-
-            $main.html ''
+            $('#main').html ''
             navigationBar.dismiss()
 
     new ProfileView()

                    navigationBar.present()

        dismiss: ->
            $main = $ '#main'
            $form = $main.find 'form.themis-form-signin'
            if $form.length > 0
                $form.off 'submit'
            $main.html ''
            navigationBar.dismiss()

    new SigninView()

                    navigationBar.present()

        dismiss: ->
            $('#main').html ''
            navigationBar.dismiss()

    new LoginView()
