refactor getting headline from the headings/title