adding individual key values and making refresh happen automatically