angular edit models and controllers