activity dialog now closes on submit.