integrate Dialog module to encapsulate some dialog elements