adds main view controller