changed the way logfile is updated when viewed by ui