convert prompting to inquirer.js