added putpat to html