pagination style, some fixes