update html object and controller object