changing to mvc