added clone document functionality