allow mouse listener to be disabled