close modal after inserted