removed unused code from Document menu