Add conditional css classes