Bunch of fixes to ui, and a proper WebAPI backend