added css logic