Close modal after upload