refactor forever loop
new editor for main loop