added optional delegate when clicking a section header