Extended mouse listener and add debug component to counterapp.