a  searchComponent with base functioins