added documents pagination