removed duplicate load of template