Refactored graphical user interface and utility methods.