Made ConfirmDialog definition more consistant