Minor refactoring. Added View class containing all necessary view
variables.