fix the main window UI (1)
add log dialog