[UI] in working shape. undefined error removed