added automatic copying to clipboard