Updated to fix the delete issue and fixing issues editing new files