switched pg states from table to bs badges