changed order of activities