GUI with working "generate" button