tidy up formtools attributes