added update function for trip/item