added search funcitonality