pagination control working