moved initialization of model type to page startup code