refactored STMTUI