remove unused code, ensure that spelling works with ajax and that we cannot get next page if we are at max