clean html structure, add home link, add pnl image