first version, add log to GUI