data refreshes on code change