Improved GuiUtils