Close modal on succesful create or import