fix code to open a link in new window