Added dynamic button creation when clicking storymode.