Improved gui for histogram