Updated to allow tapping on trails to get their name

Some of the trails don't have a name in the database, so it's not all trails,
but the ones that do, get the pop-up info bubble.

Also did some code factorization to fix a bug that I didn't even realize that I
had.