cleanup url listening to only be when url changes