Attached mouse up event to document