updating code to support bootstrap 3.x