added mouse event control
added data as a field of the view
added the function to draw a point