handle previous content clearing styles