generator for Update in CRUD
redirect to list after create or update