Change templates to use bootstrap 3
XMLModeHelper initialized twice
XML mode: add commands for expanding selection to outer element; remove surrounding element.