extract methods handleSingleClick() handleDoubleClick() handleRightClick()