commit main view controller.