loads initial snapshot of main document