added dialogs for success and failure of code generation