half finish  edit update index destroy action