Adds charts and table with data to dialogs when clicking on a traject.
Many bug fixes