Improved the logviewer