cleaning up a bit for the dialog handlers