Made the delete function arbritary, added a duplicate function and put all the object options into a submenu