added mouse events handlers for Unit class