add firebase functionality