prepare to reset stylesheet