Add copy document functionality