Fixed AngularJS/Bootstrap bugs