added drag and drop events to menuitem