BK-842 Upgrade templates and code for Bootstrap 3