made template create and edit form work again