introduced  global dialog count to ensure that new dialog is always openend
on top
added vertical scrollbar
fixed closing dropdown issue