change from beans to mvc