Add logger and center window