Changed the right mouse behaviour to use a popup menu.