controller method update