integration p2p.core with ui