categories are fulling working. changed the tables to run on keys rather than looking up in the table the position of the selected row. next need sorting to work