populate details view on click