adding class toggling to progress bar steps; introduced bug