added cancel callback argument to input_dialog