make toolbar checkbox handlers IE8 compatible

.addEventListener is not supported in IE8- so took that into account this time, window.location.reload seems to behave weirdly though