implemented cb_confirm() and cb_prompt()