show path on last label hover

- refactory of the show path function
- adding show and hide events (add publisher-subscriber(?))