Installed and configured pagination and corrected some errors