more intelligent dispatching of popup windows to internal vs. external browser