Rewrites to gui.erl (Windows setLabel issue) but not fully cleaned up yet