Added forcing to keep preview window open