refactoring trips show page and location edit