make hisroty buttons work