Changed history markup to use badges classes