update view and models