fixed bug with setting curent cursor when clicked on menu item