fixed the duplicate menu functionality for open new window create