updated main Yii layout to use dynamic models for stats