solve problem of update of the view