working on search bar and sort