set up main view controller and navigation view