New document menu item functionality added