Added ability to open windows based on selected items