added createDocument for right click action to copy/cut document