Start porting over to $modal instead of $dialog.