undo,copy,paste function addition