Setup repo model and controller