Fix bug where the history label didn't work correctly

The code was wrongly put inside the for loop that updated the card
buttons,  so it was placed outside the loop.