removing unnecessary tags and styles