writing and removing files from the documentsDirectory has been implemented from the RootView