refactor STMTUI