Update to dialog management

Added new features to dialog management so that a user can easily add and clear sections of the dialogs live by passing the dialog container. Better because it then allows us to execute wrappers on the section being added before actually adding it to the dialog!

Another update is the ability to tie a real function to the button elements instead of a function name!