add template for forms and fix #3