Dialog windows open conditionally

@winhamwr I'll tell you.