Tidy up the dialog view