A few code fixes to the modal dialog blog post