updating two way binding