improved new_template form