firebase update phase dtected