fixed #206

disabling history icon if there is none