Refactoring GUI.