fix clean up if files were deleted
add url and title change in the ajax process