adding a log window