change way of updating adapter data