Updated current page number functionality so other resource session values are destroyed in the index method