Working to make dialog instanceable objects instead of being a singleton.