Refs #16. Laying out the dialog and setting up the view.