Disabling navigation component(s) whenever it should be.