why wait for the previous activity to close, instead of waiting for the settings activity to have started?