pass data between controller by state