add controllers and connect to firebase