fixed problem with open in new window