updated search and switch

replaced flipswitch, made search based on location provided.