fixed issue with mouse right click which didn't open popupmenu