Convert dev mode to custom element