Modified p2pframe.c to use the new UI