fixed main page pagination and other minor issues