Update editView to only allow editing 'leaf' views

Challenges posed when propagating updates to child views, especially
with regards to the orientation of folding lines
Fix small errors
Fix bug when deleting views

Forgot to include length of removal: was removing entire portion of
array after the designated element