add token model and state to controller
fix bug, using model instead of models