big refactoring to bring tools responsability into editmanager