try to tidy up html