change the way logfile is updated when viewed by ui