Added switching of modes to the editor by URL