Modified modal dialog function.

- Configure block dialog was too small
- html textblock dialog was not closing when clicking outside.