refactor from traits to Qt GUI