added onDelete() feature to modules CONTENTBOX-58 #close