fix modal behaviour on a couple of dialogs