implemented pnl view