using custom event to notify main window when a thumbnail is clicked