implementing firebase