added currentView property to avoid conflict with view paramter