Reworked some button class adding during step navigation. Check that buttons exist before adding classes.