Fixed onselect and onunselect both for right menu click and markerclick