change SearchBox from an interface to a class