Added short cache for templates
Added confirmation dialog when switching templates