Adding support for untitled documents