better method for active immersive mode