Lots of tweaks to editing and responsive layouts

Main code rev. 1791