adds class for new close/open button