add body directive to set class