CORE- 275 Added preventDefault to click function and changed the way window is open optimally for IE8