add addTableView mehtod
remove if elseif else
change the solve method about navigationController and scrollview problem