Understanding the model view controller behind the master detail template.