The code looks OK at first but the names are wrong. If the name is `create_dialog` then it must return a dialog. I don't want to be stubborn, but I think the names I used in 692ffc2dc18ebb9a5e688a3c5c42357cdbab2f95 are a better match.