ui_newt: add form and event loop