passing model to controller but model slightly broken