added proper text update