Changed currentView to previousView