adding h1, h2 and h3 buttons to the toolbar
refactoring out duplication