fixed problems with the style cascade after moving rules to the stylesheet