added segue and code to pull object from array