still trying to find what goes wrong with the rendering loop on the editor window