pagination problems in routing