refining forms and templates