add log to widow and console