not refreshing data.json status on every page load, adding refresh button