moved next intersession logic to controller