improve flow and port detail html