gui now works with all the refactorings