added a slighty altered copy of the Dialog to customize the layout