use json to refresh page