}
} else if (source == itemFormCtr) {
if (event.equals(Event.CHANGED_EVENT) || event.equals(Event.CANCELLED_EVENT)) {
if (event.equals(Event.CHANGED_EVENT)) {
FileElement mediaFile = currentItem.getMediaFile();
if (!feed.getItems().contains(currentItem)) {
// Add the modified item if it is not part of the feed
feedManager.addItem(currentItem, mediaFile, feed);
createButtonsForItem(currentItem);
createItemLink(currentItem);