set confirm for class registeration as ajax