xbmclogviewer code clen up