adjusted the layout of the page selector