added if u click trail button once trail is open it will close
mobile test