implements cut/copy/paste from Edit menu