moved the markup builders to separate methods so that they can be re-used