preparing html file