removed styles for unordered/ordered lists and fixed a bug in resource replacing