observe messagebox when document ready