Rename handlers to middleware
Remove unnecessary ui middleware
Use Editable objects instead of elements