Setting up main view controller.