cleaning up the file manager