location togle working