model and controller dev