implement search feature and filter results by searched package