beginnig with search by ui function