regenerate GUI code