Display the state of the document on the title bar