fixed ajax, added dynamic tab totals