Refactored GUI into multiple components across their CPP files.