Added support for intercepting popup urls