Dialog methods (taken from deprecated Console)