Switching added for endless and auto scroll modes