moved panel related functions from editor.js to helpers/panel.js
refactoring of controller/main : moved functionalities to editor