Replace openlayers control with simple cick handler function