before save call back edited