Refactoring guis