tidy up form