overall of table logic, use buttons instead of spans, initial javascript selection logic