added protocols to pass back information to main view controller