refactor old criteria to query style
remove old comments
fix reload of input on delete of sidebar item

refactor all code
• "global" firing of event on change of sidebar detail returning array of id and action(inserted, updated, removed)
• only reload sidebar row on update of sidebar entry
• make sure related input widget is always updated