refactoring: extract Toolbar, Popover, Dialog from EventHandler