added a XYdata view class together with appropriate mouse events