split search widget src and vendor into multiple files