add endless and stepped mode logic update storyboard