an improvement to the way jquery-ui dialogs were used
refactored some code responsible for passing configuration variable to directives