Fixes wrong item count and inline form submit
trims dead code
makes ordering consistent across views
Fixes autocomplete breaking inline edit