adds class for button name