Added segue and basic functionality to main view controller