Combine add and edit trip functionalities.