update search functionallity