Concept: move code from model to views