pass data to detail view.