exit modal upon post submission