added css class checks