Added search buttons functionality