Add ability to toggle editing mode.