added form to templates