using dialog to show appointment warnings