fix pagination in every page (for the moment), add a missing template