added option for grid for histogram