update Model and Controller