Add test code for new editor. Change system control to use toggle switch instead of prompt. Add reconnection logic