creating form for creating template
lots of ajax and crap