capture current url in popup