fixed problem with data-toggle="button"
(class was changed too late)