adding getObservable helper function for two way bindings