add customizable templates in popups for layers