Working to make dialog do stuff