#18 added dialogSettings handling