fixing problem with missing template file