set doc title programmatically.