update htmlpreview