udpate listener to window