added in the code so that when in deleted status cannot edit the type of the requirement