/* called when a story is first loaded, and whenever a button
         * is clicked while the StoryState is on a given page */
        private void UpdateButtons()
        {
            var displays = state.GetButtonDisplays();

            for (int i = 0; i < buttonCount; i++)
            {
                var text = displays[i];
                if (text == null)
                {
                    buttons[i].Visibility = Visibility.Hidden;
                }
                else
                {
                    buttons[i].Content    = text;
                    buttons[i].Visibility = Visibility.Visible;
                }
            }
        }