added second grid with page numbers, fixed pagination bug