close docs window on selected item click