edit some mvc code  this make it mvc style