updated unit container content visibility handling