Moved change_url function seperate from the function that the signal calls