Refactor tutor dialog hiding
Update legend dialog on language change