Allowed for no header and/or footer as well as added test UI to see it

Added support for no header and/or footer for modal dialog boxes.