make ajax todo completion work with ajax pagination