Separted out view stuff in appView object
More refactoring