Add next class to buttons in exclusion