automatic update of html