implement search action