Changed the way the measuring tools hide and show.
Also updated the jQuery UI library.