Dialog windows open conditionally

@winhamwr Viola! Ask me how I did it.