cleanup the form