Implemented pagination restoring on item select