added callback for ui event
formatting
start proto