A little code reorganization, pathology search table pagination fixed