Register mvc refactoring