triger only if have trail data for show trail in index.js