updating environment urls, fixing a bug with options popups