Several bug fixed.
Merged with ui upstream.
Merge branch 'master' of https://github.com/mydlp/mydlp