prevent double submission on learn