reverse opaque state (if active) at the end of controller main