add semicolon
refactor constraints controller to make use of ConstraintModel. Views updated accordingly