update controller method