added log window and save button