refactor url connect to firebaseIO