work on search function, now need to wire backend