scatter plot and brush working