[Fixes#73236070]

Save ui_mode and user_agent in trips_controller and kiosk
base_controller.