set up with model and controller