refactor bootstrap badges