main view set up