modified for bootstrap 3