pass variable to controller