add functions to display documents