before edit activate link