My dialog box now closes, hurray!