added guard to not create layers on Morph and CodeEditor if standalone