change page buttons layout, highlight current page button, resize page buttons with table