stylesheet cleanup and history style cleanup