Updated the GUI menu icon dynamically with the selected gate.