code updates for more dynamic data display