added models and controller