changed the behavior when location button tapped.