formatting the trip page