Refactored btnPathCopy_Click