Rewrite GUI creation