change pagenum problem when refreshing