adding changes to copying to clipboard behavior