lot of refactorings, first shitty implementation of ScriptEditViewControllers