pass url in stop function