Update buttons and css class