update titlebar with document name