updaetd for selection window