gui: refactoring.
gui: refactoring.