update controller passing data to view