Chaning url and loop