Added ability to change order of pages buttons