Hook up most of dialog