Showing pagination and paginating but the html part is missing