clean up html template