added selection listener