refactor trip page and relative object