logout resets the mode to show_telegrams to avoid error message