making the subject for enable and disable on the bases of ad/edit mode