Got the mouse listener to work and goes back from thumbnail mode.