Added “if” for check is it opens in new window