adding back btn-primary if no btn- style is found in class array