newTrip function moved from tripExpenses to selectTrip.