add template to list and create map