updating css classes