changed logic for sequence of events when gps activated"