add selectsearch funtion