Added the functionnality of page choosing
Added the page choosing functionality