move data to controller