add firebase code