Refactor ntris ui code into submodule