templates/functions detail and list