implement CopyPages component