fixed the routing to match firebase changes