clean up code for time display in logPanel