Refactored  view - different class for every page