clean bugs; add prev/next table buttons