Implemented a pageClass for active view