switch proper url