added fetching of mouse coordinates via Rect