after you have split out the modal dialog code, remove this whole method