LPS-35668 fix wrong label
LPS-35668 fix hidden dialogs
LPS-35668 fix bug introduced when migrating toolbar
LPS-35668 encapsulate javascript code to avoid duplication
LPS-35668 - Source formatting