did some refactoring
started adding a table wiever to the gui

Signed-off-by: gitta-mannen <mail@janpettersson.com>