Added flag to indicate form, and added sample handlebars logic