Added a preview window