Refactored code for GUI