add file name event in context
close document