add code View & Controller

DRY.