move set browser text logic to service