remove unnecessary styles and links