update html elements