updated search function, still need to implement html