refactor handling of amber to AddTemplateFile as the TODO note stated. Used switch statement to make it easier to add other template support