added code to pass an object from one view to another via a segue