add sub window

add sub window for logging