moved do* functions into the TabelModel class where they belong