window size fix and add close menu