update model. Change url manager to use gii