add search function in stores