trying to implement correct edit action