added flow to levels for model and controller