Conditions are not triggering when the edit link is initially loaded