Add currentView attribute to Ap