finish filemanager function thanks jayin