Some initial work on the main view.