loading detail when user clicks on a list item.