updated the adapter (refresh)