implemented context menus with correct mouseout behaviour for issue #1