fixing toggleMinimize event as gets handled by too many handlers

reverting changes from https://github.com/openmicroscopy/openmicroscopy/pull/1708/files#diff-6cedf73ec464ba34acacbd07b15060eeL124