added an event for when the displayed data is changed
moved persisting of entity to later place because of possible problems with doctrine in edge cases