made onLoad add class rather than raw css