add user agent parser and update html helper