added 3 way binding with firebase service