creating search widget