only show context menu when a template has been set