changing main document