refine form submission