src: added listener for dialog, rename package