Define your own dialog box and get user input