added ID convention to editors
refactoring and better support for foundation