store data and handle trip edits