updated visualization code to account for both crime and refresh data