fill, reset and update data (client side)