altered period size and onCloseWindowSize