Prevent dialog from launching multiple times