update index page to deal with nil learning condition.