add css-class to distinguish when to call java-function