Adds main view.