before changing firebase route