updated depending mojo version
updated UserAgent API