update file manager function