gui comming to gether. better test in main.cpp