handle middle-clicks