updated close function to call hide of OpenLayers.PopUp