added event for selecting in quicksearch