pass model into controller