fix pug with pagination buttons