Removed globals from modal dialog