-Changed when the update event is called