add user-agent context class to body