changed from javascript remoting to repeat