some changes to search activity. also removed unneeded code from barcode