Add a flag to show/hide the toolbar in diffraction tool