added "template" property to Form_builder and fixed issue with double rendering when rendering template.