implemented segue and data passing to detail page