updated CRUD and model with gii