src: improved dialog and add email subject