DRY out the ID generation functionality
Clean code and fix two-way binding on selectedTripId