refactor(gen:view): beautify the user promts and change the subsequent code to handle it correctly