Renaming appView to mainView