- removed redundant code
- cleared trip data when change trip