add firebase functionalities