improve focus handling of comment dialog

- do not loose input dialog when clicking outside of dialog
- focus text field when opening dialog

resolves issue #135