updated configs and close modal on success