Automatically add css class