added search functionallity