add some documnet ready functions to the jquery-ui dialogs