update plan model