Refined ToolbarGUI code for enhanced modularity and readability.