functions to change document name