Committing changes to the view, also updating tree code