refactor trail index and add styling