adding jquery effects on enroll/cancel enrollment, fix a bug after refactor