adding a user agent detection route