Close modal after submission