prevented the auto-scrolling when clicking of the history button.