initial search functionallity