Properly hide elements on tx submit