fixed newFile and newFolder and implemented openFile to mediator