fix template to make form work