Generates summary data for current view
Change to 'done editing' handler
Makes all views public to work around issue with authorisation check
Added a lot of semi-colons, some comments and a bit of debugging console
logs