removed days to log entry purpose and replaced window.close cause it doesn't work in older gtk