attempting to implement sliding between list and details
implemented viewing dog details when clicking on a list item