updating density plot