added callback to firebase