add random filtering, redraw plot when data changes