Fix css when rewriting, update display