add doc and query page