stateName added to controller initialization