fixed bug with opening windows in new tabs