clean up summary and detail html