making view and bindings onChange work