Changed to use angularFire instead of Firebase directly