Completed mouse event functionality