implementing the search action for cats