added a listener for toolbox items