Add setView of P2PClass