Trying to get  URLs when window is activated