added log window to display debug messages