ui for loop points. refactoring to support dynamic loop points