Switches properly to mode when location changed success