WIP: refactor code to generate UI markup
refactor creation of ui DOM elements
closes #23: buttons in toolbar: toggle menu works