Restore code to remember the last direction messages were displayed in