Added mainviewcontroller.