fix path when opening document
remove unneeded data-file attribute from template