adds details template to display information when a user clicks the map