Handle resizing windows (loses active links on resize)