replace approvalPrompt with more functional prompt var