restructured form to clear all fields after submission