tweak menubar layout
refactor base template code