AppView class used for rendering
Some bugs repaired