set up main view