pagination and simplify button classes