adding titles in main document