added delete button to file
added functionality to save document