Code refactoring. Added paste as plain and paste as rich text