Add a DialogController class to help with dialog usage.