kinda finished all the search functionalities