fix for template dropdown values not getting updated when a new page is loaded