added logic for “AllowTextCopy”