Spontaneous and task-related changes in resting state connectivity