- final stable version with debugging statements removed before trying out editor toggling implementation
(revert back to this version if editor implementation breaks the code)