update nb tableview and delete unused function