fixed overwriting of css_class in layout