refactored generator setup dialog