Add user agent in constructor and setter method