fixed some reload page bugs for template create/deletion