updated the viewtypeadapter.