bug fix: headview should show nothing when canRefresh==false