updated search and fixed bugs
update