setting user-agent attribute