Override the jquery ajax function to add device_id argument in every ajax call from the UI