Demonstrates how to get a result from a modal dialog