Checks for button array equality to avoid removing and re-adding buttons if possible