made variabletablecontroller an own class
extracted tablehandler class