clean up modal closing