Added histogram and refresh button