Add appView to main.js