Added SelectPage Function