inject model to controller