now using firebase. refactored app