stock feature on edit and add