Added updating text method