Add functions allowing users to switch easily between online and offline, as well as edition and history mode