Success with changing class styles instead of manually changing them