update html5 mode