updating html and response