Added observer to changes of view model